Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: JManager Reference /
Chapter 1 - JManager Reference / JManager Functions
Runtime Invocation Functions /


JMIdle

Allows JManager time to service other threads.

OSStatus JMIdle(JMSessionRef session, 
UInt32 jmTimeMillis);
session
The current session.
JMTimeMillis
The amount of time, in milliseconds, allowed to service other threads. For the default wait period, you can set this parameter to kDefaultJMTime.
function result
A result code. See "JManager Result Codes" (page 69) for a list of result codes that JManager may return in this field.
DISCUSSION
If no threads need to be serviced, JMIdle returns immediately. JMIdle also returns (suspending other threads) if a user event occurs in the current session. You should call the JMIdle function once each time through the event loop.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 DEC 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help